import { lazy } from "react";
import { prefixRoute } from "../configs";
import Login from "../pages/login";
import Home from "../pages/home";
import xxwhManage from "../pages/xxwhManage";
const allRouter = [
  {
    tag: "Redirect",
    from: "/",
    to: prefixRoute + "/login",
    exact: true,
  },
  {
    tag: "Route",
    name: "登录",
    path: prefixRoute + "/login",
    component: Login,
  },

  {
    tag: "Route",
    name: "首页",
    path: prefixRoute + "/home",
    component: lazy(() => import("../pages/home")),
  },
  {
    tag: "Route",
    name: "信息维护",
    path: prefixRoute + "/xxwh",
    component: lazy(() => import("../pages/xxwhManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "线路信息",
    path: prefixRoute + "/xlxx",
    component: lazy(() => import("../pages/xlxxManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "预定信息",
    path: prefixRoute + "/ydxx",
    component: lazy(() => import("../pages/ydxxManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "车辆管理",
    path: prefixRoute + "/clxx",
    component: lazy(() => import("../pages/clxxManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "路线管理",
    path: prefixRoute + "/lxxx",
    component: lazy(() => import("../pages/lxxxManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "用户管理",
    path: prefixRoute + "/yhgl",
    component: lazy(() => import("../pages/yhglManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "预定信息2",
    path: prefixRoute + "/ydxxs",
    component: lazy(() => import("../pages/ydxxsManage")),
    exact: true,
  },
  {
    tag: "Route",
    name: "车辆详情",
    path: prefixRoute + "/busDetails",
    component: lazy(() => import("../pages/busDetails")),
    exact: true,
  },
  {
    tag: "Route",
    name: "咨讯速览",
    path: prefixRoute + "/quickCheck",
    component: lazy(() => import("../pages/quickCheck")),
    exact: true,
  },
  {
    tag: "Route",
    name: "关于我们",
    path: prefixRoute + "/aboutUs",
    component: lazy(() => import("../pages/aboutUs")),
    exact: true,
  },
  {
    tag: "Route",
    name: "关于我们",
    path: prefixRoute + "/statistics",
    component: lazy(() => import("../pages/statistics")),
    exact: true,
  },
];

export default allRouter;
